package org.lanqiao.tjut.dao.impl;

import java.util.List;

import org.lanqiao.tjut.bean.UsersEntity;
import org.lanqiao.tjut.dao.IUserInfoDao;
import org.lanqiao.tjut.mapper.UsersEntityMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository("userDao")
public class UserInfoDaoImpl implements IUserInfoDao {
	// 依赖注入，组合mapper对象（面向接口的编程）
	@Autowired
	private UsersEntityMapper userMapper;

	@Override
	public List<UsersEntity> selectAllUsersInfo() {
		// 调用mapper进行处理
		List<UsersEntity> lstUsers = userMapper.selectUsersInfoList();
		return lstUsers;
	}

}
